package com.moon.config;

import com.moon.utils.IdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class IdConfig {

    @Bean("idWorker1")
    public IdWorker idWorker1() {
        return new IdWorker(1,1,1);
    }

    @Bean("idWorker2")
    public IdWorker idWorker2() {
        return new IdWorker(1,2,1);
    }
}
